<% render("views.layouts.head") %>

<h1><%= head_title %></h1>

<% if message then %>
	<p><mark><%= message %></mark></p>
<% end %>

<form method="POST" action="<%= url_for("login") %>">
	<input type="hidden" name="csrf_token" value="<%= csrf_token %>">
	<div>
		<label for="identity">Correo o usuario</label>
		<input type="text" id="identity" name="identity" minlength="1" maxlength="255" autofocus required>
	</div>
	<div>
		<label for="password">Contraseña</label>
		<input type="password" id="password" name="password" minlength="6" maxlength="255" required>
	</div>
	<div>
		<input type="submit" name="submit" value="<%= head_title %>">
		<p>¿No tienes cuenta? <a href="<%= url_for("signup") %>">Regístrate en <%= website_name %></a>.</p>
	</div>
</form>

<% render("views.layouts.footer") %>